package org.jianfa.mq.seckill.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jianfa.mq.seckill.entity.po.SeckillOrder;

public interface SeckillOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SeckillOrder record);

    SeckillOrder selectByPrimaryKey(Long id);

    List<SeckillOrder> selectAll();

    int updateByPrimaryKey(SeckillOrder record);

    SeckillOrder findByUserIdAndGoodsId(@Param("userId") Long userId, @Param("goodsId")Long goodsId);
}